using System;
using System.Text.Json.Serialization;
using JlPay.Sdk.Core;
using JlPay.Sdk.Models;

namespace JlPay.Sdk.Models.Fund.Deferred
{
    /// <summary>
    /// 资金解冻请求
    /// </summary>
    public class FundUnfreezeRequest : OrgBaseRequest
    {
        /// <summary>
        /// API前缀
        /// </summary>
        public const string ApiPrefix = "/open/fund/deferred/order";
        
        /// <summary>
        /// API URI
        /// </summary>
        public const string ApiUri = "/unfreeze";

        /// <summary>
        /// 外部订单ID
        /// </summary>
        [JsonPropertyName("out_order_id")]
        public string OutOrderId { get; set; } = string.Empty;

        /// <summary>
        /// 原外部订单ID
        /// </summary>
        [JsonPropertyName("ori_out_order_id")]
        public string OriOutOrderId { get; set; } = string.Empty;

        /// <summary>
        /// 解冻金额
        /// </summary>
        [JsonPropertyName("unfreeze_amount")]
        public string UnfreezeAmount { get; set; } = string.Empty;

        /// <summary>
        /// 原因
        /// </summary>
        [JsonPropertyName("reason")]
        public string Reason { get; set; } = string.Empty;

        /// <summary>
        /// 备注
        /// </summary>
        [JsonPropertyName("remark")]
        public string Remark { get; set; } = string.Empty;
    }
} 